package com.hdyg.sixg.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hdyg.sixg.R;
import com.hdyg.sixg.entry.CountryBean;
import com.hdyg.sixg.entry.HostBean;

import java.util.List;

/**
 * @author CZB
 * @describe 托管类型适配器
 * @time 2019/4/11 14:22
 */
public class HostTypeAdapter extends BaseQuickAdapter<HostBean.DataBean, BaseViewHolder> {
    public HostTypeAdapter(int layoutResId, @Nullable List<HostBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HostBean.DataBean item) {
        helper.setText(R.id.tv_left_top,item.getCointype());
        helper.setText(R.id.tv_left_bottom,item.getCreated_at());
        helper.setText(R.id.tv_right_top,item.getAmount());
        helper.addOnClickListener(R.id.tv_right_bottom);
    }
}
